package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.mapper;

import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Journal;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.JournalImpact;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface JournalMapper {
    @Select("SELECT * FROM Journal Journalimpact WHERE id = #{id}")
    Journal getJouralById(Long id);

    @Select("SELECT * FROM Journal")
    List<Journal> getAllJournals();

    @Select("SELECT * FROM Journalimpact WHERE id=#{id}")
    JournalImpact  getJournalImpactById(Long id);

    @Select("SELECT * FROM Journalimpact")
    List<JournalImpact> getAllJournalImpacts();
}
